<template>
	<view>
		<view class="cards">
			<card :avatar="i.vcard.portrait" :name="i.vcard.name" :job="i.vcard.position" :company="i.vcard.company" :date="i.vcard.created_at" v-for="i in list" :key="i.id"></card>
		</view>
		
		<u-gap height="320"></u-gap>
		<view class="text-center text-gray text-sm">
			只显示最近一个月哦~
		</view>
	</view>
</template>

<script>
	import card from './components/card.vue'
	export default {
		components: {
			card,
		},
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.getList()
		},
		methods: {
			async getList() {
				let res = await this.$u.get('/member/vcard/recent')
				let { recent } = res.data.result
				this.list = recent
			}
		}
	}
</script>

<style lang="scss">

</style>
